package com.lg.utils.hutool.io;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.IoUtil;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;

public class IoUtilTest {

    public static void main(String[] args) {
        BufferedInputStream in = FileUtil.getInputStream("C:/Users/imlg/Desktop/test1.txt");
        BufferedOutputStream out = FileUtil.getOutputStream("C:/Users/imlg/Desktop/test2.txt");
        long copySize = IoUtil.copy(in, out, IoUtil.DEFAULT_BUFFER_SIZE);
    }
}
